package com._520it.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com._520it.crm.domain.Recognizee;
import com._520it.crm.mapper.RecognizeeMapper;
import com._520it.crm.service.IRecognizeeService;
@Service
public class RecognizeeServiceImpl implements IRecognizeeService{
	@Autowired
	private RecognizeeMapper mapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Recognizee record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public Recognizee selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return  mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Recognizee> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Recognizee record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Recognizee> selectPage(int current, int size, String name, String nature, String antiLaunGrade, String papersType, String papersNum, String address, String tel) {
		return mapper.selectPage(current,size,name,nature,antiLaunGrade,papersType,papersNum,address,tel);
	}

	@Override
	public int selectPageCount(int current, int size, String name, String nature, String antiLaunGrade, String papersType, String papersNum, String address, String tel) {
		return mapper.selectPageCount(current,size,name,nature,antiLaunGrade,papersType,papersNum,address,tel);
	}

}
